Skip to content
GitLab
Projects Groups Topics Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
  • Sign in
  • aurweb aurweb
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributor statistics
    • Graph
    • Compare revisions
    • Locked files
  • Issues 89
    • Issues 89
    • List
    • Boards
    • Service Desk
    • Milestones
    • Iterations
    • Requirements
  • Merge requests 14
    • Merge requests 14
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Artifacts
    • Schedules
    • Test cases
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Packages and registries
    • Packages and registries
    • Package Registry
    • Container Registry
    • Terraform modules
    • Model experiments
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • CI/CD
    • Code review
    • Insights
    • Issue
    • Repository
  • Wiki
    • Wiki
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar

Admin message

Due to an influx of spam, we have had to temporarily disable account registrations. Please write an email to accountsupport@archlinux.org, with your desired username, if you want to get access. Sorry for the inconvenience.

  • Arch LinuxArch Linux
  • aurwebaurweb
  • Repository
  • aurweb
  • test
  • test_rpc.py
Find file Blame History Permalink
  • Kevin Morris's avatar
    fix(rpc): perform regex match against callback name · 2cc44e8f
    Kevin Morris authored Oct 31, 2021
    
    
    Since we're in the hot path, a constant re.compiled
    JSONP_EXPR is defined for checks against the callback.
    
    Additionally, reorganized `content_type` and `content`
    to avoid performing a DB query when we encounter a
    regex mismatch.
    
    Signed-off-by: Kevin Morris's avatarKevin Morris <kevr@0cost.org>
    2cc44e8f