Allow the CR character as part of a newline.
Since CodeOcean may send the `\r\n` newline.
This commit is contained in:
@ -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)}
|
||||
|
Reference in New Issue
Block a user