Skip to content

Instantly share code, notes, and snippets.

View user20161119's full-sized avatar
๐Ÿ‘
็ช็ ด่พน็•Œ๏ผŒ็›ดๅˆฐๅพˆ็—›

noboday user20161119

๐Ÿ‘
็ช็ ด่พน็•Œ๏ผŒ็›ดๅˆฐๅพˆ็—›
View GitHub Profile
@calo81
calo81 / LoggerFilter
Created March 18, 2012 12:48
Filter for reading and logging HttpServletRequest body, and resetting the input stream
package com.paddypower.financials.market.management.rest.logging;
import java.io.BufferedReader;
import java.io.ByteArrayInputStream;
import java.io.IOException;
import java.io.InputStream;
import java.io.InputStreamReader;
import javax.servlet.Filter;
import javax.servlet.FilterChain;
@michiel
michiel / cors-nginx.conf
Created July 5, 2011 10:41
Wide-open CORS config for nginx
#
# Wide-open CORS config for nginx
#
location / {
if ($request_method = 'OPTIONS') {
add_header 'Access-Control-Allow-Origin' '*';
#