mirror of
https://github.com/github/codeql.git
synced 2026-03-01 21:34:50 +01:00
11 lines
222 B
Python
11 lines
222 B
Python
from flask import Flask, request
|
|
import defusedxml.ElementTree as ET
|
|
|
|
app = Flask(__name__)
|
|
|
|
@app.post("/upload")
|
|
def upload():
|
|
xml_src = request.get_data()
|
|
doc = ET.fromstring(xml_src)
|
|
return ET.tostring(doc)
|