Skip to content

Commit 0f98c40

Browse files
committed
enable utf-8
1 parent 90ed82b commit 0f98c40

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
*.a
44
*.so
55
.idea/
6+
.vscode/
67

78
# Folders
89
_obj

request.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ func (r *Requester) PostXML(ctx context.Context, endpoint string, xml string, re
108108
if err := r.SetCrumb(ctx, ar); err != nil {
109109
return nil, err
110110
}
111-
ar.SetHeader("Content-Type", "application/xml")
111+
ar.SetHeader("Content-Type", "application/xml;charset=utf-8")
112112
ar.Suffix = ""
113113
return r.Do(ctx, ar, &responseStruct, querystring)
114114
}

0 commit comments

Comments
 (0)