mirror of
https://codeberg.org/Codeberg/pages-server.git
synced 2025-04-24 13:56:57 +00:00
fix authorization header
AuthorizationHeaderToken requires API tokens to be prepended with "token "
This commit is contained in:
parent
c9cfee5477
commit
81c46cc887
1 changed files with 1 additions and 1 deletions
|
@ -32,7 +32,7 @@ func (f FileResponse) IsEmpty() bool { return len(f.Body) != 0 }
|
|||
func NewClient(giteaRoot, giteaAPIToken string) *Client {
|
||||
return &Client{
|
||||
giteaRoot: giteaRoot,
|
||||
giteaAPIToken: giteaAPIToken,
|
||||
giteaAPIToken: "token " + giteaAPIToken,
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue