Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

$TYPE() broken after 1.06? #58

Closed
nhantrn opened this issue Aug 15, 2018 · 3 comments
Closed

$TYPE() broken after 1.06? #58

nhantrn opened this issue Aug 15, 2018 · 3 comments

Comments

@nhantrn
Copy link

nhantrn commented Aug 15, 2018

I've this rule to skip filtering js. I used $TYPE(js) instead of using the Key header name "Content-Type:"

[HTTP headers]
Key = "Skip Filtering Javascript"
In = TRUE
Out = FALSE
Active = TRUE
Multi = FALSE
URL = ""
Limit = 256
Match = "$TYPE(js)$FILTER(false)"
Replace = ""

This works fine in 1.05, but failed in 1.06 and 1.07. I assume it has something to do with the Content-Type changes. Are $TYPE() obsolete?

@K1GP
Copy link

K1GP commented Aug 26, 2018

This filter failed too in 1.07

`[HTTP headers]
Key = "Content-Type: Force-Filtering"
In = TRUE
Out = FALSE
Version = ""
Author = ""
Comment = "Force filtering specific content-type file"
Active = TRUE
Multi = FALSE
URL = "$TYPE(json)www.douyu.com/gapi/rkc/directory/"
Bounds = ""
Limit = 256
Match = "[^/]+/json&$FILTER(true)(^)"
Replace = ""

`

amate added a commit that referenced this issue May 3, 2019
・受信ヘッダフィルターで$TYPEが使えなくなっていたのを修正 #58
・コンパイル環境をVisualStudio 2019へ更新
・wolfSSLのバージョンを v4.0.0 へ更新
@amate
Copy link
Owner

amate commented May 3, 2019

v1.108 fixed

@nhantrn
Copy link
Author

nhantrn commented May 5, 2019

That seem to fixed it. Thanks!

@nhantrn nhantrn closed this as completed May 5, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants