Allow the CR character as part of a newline.

Since CodeOcean may send the `\r\n` newline.
This commit is contained in:
Maximilian Paß
2022-04-18 15:43:36 +02:00
parent ba98916121
commit 430b1748f5
3 changed files with 28 additions and 1 deletions

View File

@ -127,6 +127,7 @@ func (w *AWSFunctionWorkload) executeCommand(ctx context.Context, command []stri
Cmd: command,
Files: w.fs,
}
log.WithField("request", data).Trace("Sending request to AWS")
rawData, err := json.Marshal(data)
if err != nil {
exit <- ExitInfo{uint8(1), fmt.Errorf("cannot stingify aws function request: %w", err)}