Skip to content

Commit

Permalink
Update flasktestheader.py
Browse files Browse the repository at this point in the history
  • Loading branch information
f0ng authored Jan 30, 2024
1 parent aece713 commit cc348f1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions flasktestheader.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
import base64,re
app = Flask(__name__)

@app.route('/encode',methods=["POST"])
@app.route('/encode',methods=["POST"]) # 不要修改 不要修改 不要修改 永远都是POST获取参数,不管源数据包GET方法还是POST方法
def encrypt():
body = request.form.get('dataBody') # 获取 post 参数 必需必需必需 获取数据包内body的内容
headers = request.form.get('dataHeaders') # 获取 post 参数 可选 获取数据包内的数据头,需要勾选<对数据头进行处理>按钮
Expand Down Expand Up @@ -37,7 +37,7 @@ def encrypt():

return body # 返回值为固定格式,不可更改 必需必需必需

@app.route('/decode',methods=["POST"]) # 不解密
@app.route('/decode',methods=["POST"]) # 不要修改 不要修改 不要修改 永远都是POST获取参数,不管源数据包GET方法还是POST方法
def decrypt():
body = request.form.get('dataBody') # 获取 post 参数 必需必需必需 获取数据包内body的内容
headers = request.form.get('dataHeaders') # 获取 post 参数 可选 获取数据包内的数据头,需要勾选<对数据头进行处理>按钮
Expand Down

0 comments on commit cc348f1

Please sign in to comment.