Commit beccce2f authored by Ben Boeckel's avatar Ben Boeckel
Browse files

api/projects: use the actual encoding for the contents

parent cbeb99d5
......@@ -24,6 +24,9 @@ been added.
for their `query` fields.
* The `api::projects::protected_branches::UnprotectBranch` endpoint now
properly escapes branch names with URL-special characters.
* The `api::projects::repository::CreateFile` endpoint now properly upgrades
the encoding when attempting to encode binary contents using
## Changes
......@@ -154,7 +154,10 @@ impl<'a> Endpoint for CreateFile<'a> {
} else {
params.push("content", encoding.encode(content.ok(), &self.content));
actual_encoding.encode(content.ok(), &self.content),
// Use the actual encoding.
.map(|_| actual_encoding)
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment