Skip to content

Commit

Permalink
fix CreateOmeBasicAuthHeaderWord
Browse files Browse the repository at this point in the history
  • Loading branch information
Allan-Nava authored Jan 26, 2023
1 parent bc72d32 commit fff8cc5
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
2 changes: 1 addition & 1 deletion ovenmedia/header_configurator.go
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ func (h *HeaderConfigurator) CreateBasicAuthHeaderEncoded(base64EncodedToken str


func (h *HeaderConfigurator) CreateOmeBasicAuthHeaderWord(word string) {
h.Headers["ome-access-token"] = "Basic " + base64.StdEncoding.EncodeToString([]byte(word))
h.Headers["Authorization"] = "Basic " + base64.StdEncoding.EncodeToString([]byte(word))
}

func (h *HeaderConfigurator) CreateOmeBasicAuthHeader(username string, password string) {
Expand Down
1 change: 0 additions & 1 deletion ovenmedia/ovenmedia.go
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,6 @@ func (o *OvenMedia) restyGet(url string, queryParams map[string]string) (*resty.
return nil, err
}
if !strings.Contains(resp.Status(), "200") {
resp.Body()
err = fmt.Errorf("%v",resp)
o.debugPrint(err)
return nil, err
Expand Down

0 comments on commit fff8cc5

Please sign in to comment.