Fix auth.
This commit is contained in:
parent
16e67cac95
commit
bbed21d42b
1 changed files with 1 additions and 1 deletions
|
@ -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 {
|
||||
|
|
Loading…
Reference in a new issue