Skip to content

Escape arguments to curl

Erik Seliger requested to merge shell-escape into master

Created by: chrismwendt

Previously, whitespace in the GraphQL input could get compressed away.

curl commands now look like this:

curl \
   -H 'Authorization: token abcdef' \
   -d \{\"query\":\"query {  currentUser { username } }\",\"variables\":\{}} \
   sourcegraph.com/.api/graphql

Merge request reports

Loading