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:
Oleg Zhurakousky
2024-09-09 12:51:36 +02:00
parent 81a2d24a14
commit 85a4fffcd4
7 changed files with 48 additions and 9 deletions

View File

@@ -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");

View File

@@ -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,