| OLD | NEW |
| 1 /* | 1 /* |
| 2 * This file is part of Adblock Plus <https://adblockplus.org/>, | 2 * This file is part of Adblock Plus <https://adblockplus.org/>, |
| 3 * Copyright (C) 2006-2016 Eyeo GmbH | 3 * Copyright (C) 2006-2016 Eyeo GmbH |
| 4 * | 4 * |
| 5 * Adblock Plus is free software: you can redistribute it and/or modify | 5 * Adblock Plus is free software: you can redistribute it and/or modify |
| 6 * it under the terms of the GNU General Public License version 3 as | 6 * it under the terms of the GNU General Public License version 3 as |
| 7 * published by the Free Software Foundation. | 7 * published by the Free Software Foundation. |
| 8 * | 8 * |
| 9 * Adblock Plus is distributed in the hope that it will be useful, | 9 * Adblock Plus is distributed in the hope that it will be useful, |
| 10 * but WITHOUT ANY WARRANTY; without even the implied warranty of | 10 * but WITHOUT ANY WARRANTY; without even the implied warranty of |
| (...skipping 19 matching lines...) Expand all Loading... |
| 30 import java.nio.charset.Charset; | 30 import java.nio.charset.Charset; |
| 31 import java.util.List; | 31 import java.util.List; |
| 32 import java.util.concurrent.atomic.AtomicLong; | 32 import java.util.concurrent.atomic.AtomicLong; |
| 33 import java.util.regex.Matcher; | 33 import java.util.regex.Matcher; |
| 34 import java.util.regex.Pattern; | 34 import java.util.regex.Pattern; |
| 35 import java.util.zip.GZIPInputStream; | 35 import java.util.zip.GZIPInputStream; |
| 36 import java.util.zip.InflaterInputStream; | 36 import java.util.zip.InflaterInputStream; |
| 37 | 37 |
| 38 import org.adblockplus.ChunkedOutputStream; | 38 import org.adblockplus.ChunkedOutputStream; |
| 39 import org.adblockplus.android.AdblockPlus; | 39 import org.adblockplus.android.AdblockPlus; |
| 40 import org.apache.commons.lang.StringUtils; | 40 import org.adblockplus.android.StringUtils; |
| 41 import org.literateprograms.BoyerMoore; | 41 import org.literateprograms.BoyerMoore; |
| 42 | 42 |
| 43 import sunlabs.brazil.server.Request; | 43 import sunlabs.brazil.server.Request; |
| 44 import sunlabs.brazil.server.Server; | 44 import sunlabs.brazil.server.Server; |
| 45 import sunlabs.brazil.util.MatchString; | 45 import sunlabs.brazil.util.MatchString; |
| 46 import sunlabs.brazil.util.http.HttpInputStream; | 46 import sunlabs.brazil.util.http.HttpInputStream; |
| 47 import sunlabs.brazil.util.http.HttpRequest; | 47 import sunlabs.brazil.util.http.HttpRequest; |
| 48 import android.util.Log; | 48 import android.util.Log; |
| 49 | 49 |
| 50 /** | 50 /** |
| (...skipping 352 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 403 request.sendError(500, msg); | 403 request.sendError(500, msg); |
| 404 Log.e(prefix, msg, e); | 404 Log.e(prefix, msg, e); |
| 405 } | 405 } |
| 406 finally | 406 finally |
| 407 { | 407 { |
| 408 target.close(); | 408 target.close(); |
| 409 } | 409 } |
| 410 return true; | 410 return true; |
| 411 } | 411 } |
| 412 } | 412 } |
| OLD | NEW |