Skip to content

Commit

Permalink
Remove quotation marks from Content-Disposition header. Fixes eclipse…
Browse files Browse the repository at this point in the history
  • Loading branch information
kolotu authored and JulianFeinauer committed Jun 27, 2020
1 parent 3384ca8 commit c0a11ce
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,9 @@
*/
package org.eclipse.vorto.plugins.generator.lambda.executor;

import com.amazonaws.services.lambda.runtime.Context;
import com.amazonaws.services.lambda.runtime.RequestStreamHandler;
import com.fasterxml.jackson.databind.ObjectMapper;
import java.io.IOException;
import java.io.InputStream;
import java.io.OutputStream;
Expand All @@ -35,9 +38,6 @@
import org.eclipse.vorto.plugin.generator.adapter.ObjectMapperFactory;
import org.eclipse.vorto.plugin.utils.ApiGatewayRequest;
import org.eclipse.vorto.plugin.utils.ApiGatewayResponse;
import com.amazonaws.services.lambda.runtime.Context;
import com.amazonaws.services.lambda.runtime.RequestStreamHandler;
import com.fasterxml.jackson.databind.ObjectMapper;

public class GeneratorExecutionHandler implements RequestStreamHandler {

Expand Down Expand Up @@ -104,7 +104,7 @@ private ApiGatewayResponse createHttpReponse(int errorCode) {
private ApiGatewayResponse createResponse(IGenerationResult generatorResult) {
return ApiGatewayResponse.builder().addHeader("Content-Type", "application/octet-stream")
.addHeader("Content-Disposition",
"attachment; filename=\"" + generatorResult.getFileName() + "\"")
"attachment; filename=" + generatorResult.getFileName())
.setBinaryBody(generatorResult.getContent()).build();
}

Expand Down

0 comments on commit c0a11ce

Please sign in to comment.