Fix auth.

This commit is contained in:
Kalle Carlbark 2019-09-11 09:55:15 +02:00
parent 16e67cac95
commit bbed21d42b
No known key found for this signature in database
GPG key ID: 3FC0C93C5A5A0670

View file

@ -100,7 +100,7 @@ func (i *Dcim_Interfaces_Create) CreateInterface(n *NetBox) error {
if err != nil {
return err
}
request.Header.Add("Content-Type", "application/json")
request.Header.Add("Accept", "application/json")
request.Header.Add("Authorization", "Token "+n.Token)
response, err := client.Do(request)
if err != nil {