GH-1172 Ensure content-type set in a message is honored on the output
Also, ensures that the proper content type is set in GCF FunctionInvoker Resolves #1172
This commit is contained in:
@@ -24,8 +24,13 @@ import java.util.GregorianCalendar;
|
||||
import java.util.List;
|
||||
import java.util.concurrent.ThreadLocalRandom;
|
||||
|
||||
public class PetData {
|
||||
public final class PetData {
|
||||
private static List<String> breeds = new ArrayList<>();
|
||||
|
||||
private PetData() {
|
||||
|
||||
}
|
||||
|
||||
static {
|
||||
breeds.add("Afghan Hound");
|
||||
breeds.add("Beagle");
|
||||
|
||||
@@ -129,6 +129,9 @@ public class PetStoreSpringAppConfig {
|
||||
}
|
||||
|
||||
public static class SimpleFilter extends OncePerRequestFilter {
|
||||
/**
|
||||
*
|
||||
*/
|
||||
public boolean invoked;
|
||||
|
||||
@Override
|
||||
@@ -146,6 +149,10 @@ public class PetStoreSpringAppConfig {
|
||||
}
|
||||
|
||||
public static class AnotherFilter extends OncePerRequestFilter {
|
||||
|
||||
/**
|
||||
*
|
||||
*/
|
||||
public boolean invoked;
|
||||
@Override
|
||||
protected void doFilterInternal(HttpServletRequest request, HttpServletResponse response,
|
||||
|
||||
Reference in New Issue
Block a user