| @@ -155,3 +155,12 @@ func crmFindOpenID(openID string) (info crmLeadInfo, found bool, err error) { | |||
| found = true | |||
| return | |||
| } | |||
| //crmPrepareAttachmentHTTPHeader when uploading a file, we need its mime, auth header, etc. | |||
| func crmPrepareLeadUploadHTTPHeader() (headers map[string]string) { | |||
| headers = map[string]string{} | |||
| headers["Authorization"] = crmAuthHeader() | |||
| headers["Accept"] = "application/json" | |||
| headers["Content-Type"] = "application/json" | |||
| return headers | |||
| } | |||