Skip to content

Fix curl shell examples which cause 400 Bad Request

Guo Shuai requested to merge ZJUGuoShuai/gitlab:master into master

What does this MR do and why?

Due to an redundant \, the original curl examples in Repository files API cause HTTP 400 error. The \ in single quote does not concatenate lines! It's a literal \ which is not wanted in POST data. This MR fixes the problem.

Screenshots or screen recordings

Before and after: image

How to set up and validate locally

Run the curl example in the doc.

MR acceptance checklist

This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.

Edited by Amy Qualls

Merge request reports

Loading