diff --git a/crmLead.go b/crmLead.go index 27795df..cc83824 100644 --- a/crmLead.go +++ b/crmLead.go @@ -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 +}